from django.db import models


class AdministrativeList(models.Model):
    gid = models.IntegerField(blank=True, null=False, primary_key=True)
    code = models.CharField(max_length=225, blank=True, null=True)
    name = models.CharField(max_length=225, blank=True, null=True)
    city_code = models.CharField(max_length=254, blank=True, null=True)
    city_name = models.CharField(max_length=254, blank=True, null=True)
    area_code = models.CharField(max_length=225, blank=True, null=True)
    area_name = models.CharField(max_length=225, blank=True, null=True)
    town_code = models.CharField(max_length=225, blank=True, null=True)
    town_name = models.CharField(max_length=225, blank=True, null=True)
    village_co = models.CharField(max_length=225, blank=True, null=True)
    village_na = models.CharField(max_length=225, blank=True, null=True)
    level = models.FloatField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'administrative_list'